﻿using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

using KingsSharp.Core.Data;

namespace CRM.Admin.Contracts.Model.Sys
{
    public class MenuCatalog : EntityBase<Guid>
    {
        /// <summary>
        /// 目录名称
        /// </summary>
        [StringLength(80)]
        public string Name { get; set; }

        /// <summary>
        /// 目录排序
        /// </summary>
        public int Order { get; set; }

        /// <summary>
        /// 目录类别
        /// </summary>
        public short Type { get; set; }

        /// <summary>
        /// 图标
        /// </summary>
        public string IconText { get; set; }

        /// <summary>
        /// 图标颜色
        /// </summary>
        public string IconColor { get; set; }

        /// <summary>
        /// 目录的菜单集合
        /// </summary>
        public ICollection<MenuNode> Menus { get; set; }

        /// <summary>
        /// 父级对象
        /// </summary>
        public  MenuCatalog ParentMenuCatalog { get; set; }

        /// <summary>
        /// 子目录
        /// </summary>
        public ICollection<MenuCatalog> CataLogs { get; set; }
    }
}
